import http from "@/utils/http";
import {GW} from "@/common/const";

/**
 * 拉取指标形态设置
 * @param {Object} option
 * @return {Promise} Array
 */
export  function getInfo(option) {
  const url = `${GW}/smonitor/api/shape/setting/info`;
  const params = {
    ...option,
  };
  return http.get(url, params );
}

/**
 * 上传指标形态设置
 * @param {Object} option
 * @return {Promise} Array
 */
export function saveOrUpdate(option) {
  const url = `${GW}/smonitor/api/shape/setting/saveOrUpdate`;
  const params = {
    ...option,
  };
 return http.post(url, params);
 
}
